A Javascript code that will export a text file, this can be renamed to a dxf and imported into AutoCAD.
When importing into Revit, first import into a Family this will allow a section cut when imported into a Revit project.
DXF 3D Faces